import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-form',
  templateUrl: './form.component.html',
  styleUrls: ['./form.component.css']
})
export class FormComponent implements OnInit {
  public info:any = {
    username: '',
    cityList: ['南京', '南通', '上海' ],
    hobbyList:[
      {
        hobby: '吃饭',
        checked: false
      },
      {
        hobby: '睡觉',
        checked: true
      },
      {
        hobby: '敲代码',
        checked: false
      }
    ],
    city: '南京',
    sex: '1',
    mark: '',
  };
  constructor() { }

  ngOnInit() {
  }

}
